<?php

	function k_format($number){

		$number = (int) $number;
		
		$devided_number = 1000;
		
		if($number > $devided_number){
			$number = ceil($number / $devided_number) . 'k';
		}
		
		if($number > 0){
			return $number;
		}else{
			return 0;
		}
		
	}
	
	/*
	 *  Image dismension:
	 *  	image: 	original
	 *  			730
	 *  			250
	 *  			90x60
	 *  	text:	original
	 *  			
	 */
	function get_image($image_name, $type = 'image/730'){
		$tmpName = explode('_', $image_name);
		return R_IMAGE_URL  . $type . '/' . $tmpName[0] . '/' . $tmpName[1] . '/' . $tmpName[2] . '/' . $image_name;
	}
		
